const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
	"banners|5": ["@image(375x200, @color, image)"],
	"menus|10": [{
		title: "@ctitle(2)",
		image: '@image(50x50, @color, menu)'
	}]
})

fs.writeFileSync('data.json', JSON.stringify(data))